package bpmn.structure;

import java.util.ArrayList;

public class EndEvent extends ProcessElem
{
    private final ArrayList<String> incomingRefs;

    {
        type = BPMNElemType.EndEvent;
    }

    public EndEvent(String id)
    {
        super(id);
        incomingRefs = new ArrayList<>();
    }

    public ArrayList<String> getIncomingRefs()
    {
        return incomingRefs;
    }

    public void addIncomingRef(String ref)
    {
        incomingRefs.add(ref);
    }

//    @Override
//    public BPMNElement getParseElement()
//    {
//        BPMNElement e = new BPMNElement(BPMNType.EndEvent);
//        e.setId(id).setName(name);
//        return e;
//    }
}
